Skip to content

Conversation

@stephenrho
Copy link

#41
Padded the ICD9 procedure codes (src/pccc.cpp) in accordance with the documentation

  • < 100 = front pad "0"
  • < 10 = front pad "00"
  • < 1 = front pad "000"

ICD 9 procedure codes do not look like they follow the convention outlined in https://cran.r-project.org/web/packages/pccc/vignettes/pccc-overview.html

Codes < 10 should be front padded with "00" and codes < 100 should be padded with "0". But, e.g. code 06.4 (endocrine disorders) was listed as 064 (so matches 64.0 = circumcision). Will fix others in future commit

pc_neuromusc = {"0152","0153","0221","0222","0231","0232","0233","0234","0235","0239","0241",
"0242","0293","0371","0372","0379","0393","0397","0492"};
pc_neuromusc = {"00152","00153","00221","00222","00231","00232","00233","00234","00235","00239","00241",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ICD-9 Procedure codes are a maximum of four digits. 00152 is not a valid ICD-9 procedure code, 0152 is a valid code. specifically, this is 01.52 which is a Hemispherectomy.

"4432","4438","4439","4563","4581","4582","4583","4613","4622","4623","4632","4640","4641",
"4643","4697","504", "5051","5059","526","527","5280","5282","5283","5284","5285","5286",
"5471","9624","9636","9702"};
pc_gi = {"0253","0254","04210","04211","04242","04281","04311","04319","04391","04399","04412",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The leading zero for 253 is an error.

First, the compact ICD-9 procedure code 253 expands to 25.3 as the full code which is a "complete glossectomy" and maps to a gi issue.

a compact code of the form 0253 would expand to the full form of 02.53 which is not a known ICD-9 procedure code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants